import Home from '@/views/home'
import Detail from '@/views/detail'
import Login from '@/views/login'
import Menu from '@/views/menu'
import Notfound from '@/views/not-found'
import Mine from '@/views/mine'

const routes = [
  {
    path: '/',
    redirect: '/home'// 重定向
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/detail',
    component: Detail
  },
  {
    path: '/login',
    component: Login
  }, {
    path: '/menu',
    component: Menu
  }, {
    path: '/mine',
    component: Mine
  }, {
    path: '*',
    component: Notfound
  }
]

export default routes
